home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14196 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  959 b 

  1. Path: hpp.Stanford.EDU!kpfleger
  2. From: kpfleger@hpp.Stanford.EDU (Karl Pfleger)
  3. Newsgroups: comp.lang.c++
  4. Subject: anyone got a good arbitrary-size integer class lying around
  5. Date: 29 Mar 1996 07:04:43 GMT
  6. Organization: Computer Science Department, Stanford University
  7. Distribution: world
  8. Message-ID: <4jg22b$5gs@nntp.Stanford.EDU>
  9. NNTP-Posting-Host: hpp.stanford.edu
  10.  
  11. Anyone have a nice small relatively self-contained arbitrary-size integer
  12. class lying around? I'm imagining something that uses just 5 bytes (a pointer
  13. plus a character) for small enough integers and more memory for larger
  14. numbers. (I can't figoure out any way to do it in less memory for the small
  15. numbers cause you have to have the pointer, right?)
  16.  
  17. -Karl
  18.  
  19. ----------------------------------------------------------------------------
  20. Karl Pfleger   kpfleger@cs.stanford.edu   http://www.stanford.edu/~kpfleger/
  21. ----------------------------------------------------------------------------
  22.  
  23.